using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace ProjektZespolowy
{
    public partial class Test : System.Web.UI.Page
    {
        //protected void Page_Load(object sender, EventArgs e)
        //{
        //    if (FileUploaderAJAX2.IsPosting)
        //        this.managePost();
        //}

        //private void managePost()
        //{
        //    HttpPostedFileAJAX pf = FileUploaderAJAX2.PostedFile;

        //    //if (pf.Type == HttpPostedFileAJAX.fileType.image && pf.ContentLength <= 5 * 1024)
        //        FileUploaderAJAX2.SaveAs("~/temp", pf.FileName);
        //} 

        //protected void Button1_Click(object sender, EventArgs e)
        //{
        //    HttpPostedFileAJAX pf = FileUploaderAJAX2.PostedFile;

        //    if (pf.ContentType.Equals("image/gif") && pf.ContentLength <= 5 * 1024)
        //        FileUploaderAJAX2.SaveAs("~/temp", pf.FileName);
        //}
    }
}
